<?php

class Admin_Model_Tc {

    private $_dbtable;

    public function __construct() {
        $this->_dbtable = new Admin_Model_DbTable_Tc();
    }

    /**
     * 
     * @return type
     */
    public function getTc() {
        $select = $this->_dbtable->select()->where("id = 1");
        return $this->_dbtable->fetchAll($select);
    }

    /**
     * 
     * @param type $data
     * @return type
     */
    public function updateTc($data, $id = 1) {
        return $this->_dbtable->update($data, "id = $id");
    }
    
    /**
     * 
     * @return type
     */
    public function getAboutUs() {
        $select = $this->_dbtable->select()->where("id = 2");
        return $this->_dbtable->fetchAll($select);
    }

    /**
     * 
     * @param type $data
     * @return type
     */
    public function updateAboutUs($data, $id = 2) {
        return $this->_dbtable->update($data, "id = $id");
    }

}

